﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Program06
{
    /// <summary>
    /// 实现原价打xx折
    /// </summary>
    public class CashRebate:CashSuper
    {
        private double _moneyRebate = 1d;//不打折，原价输出
        public CashRebate (double moneyRebate)
        {
            this._moneyRebate = moneyRebate;
        }
        public override decimal AcceptCash(decimal money)
        {
            return money * (decimal)_moneyRebate;
        }
       
    }
}
